﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EmpInfo.aspx.cs" Inherits="Web.EmpInfo" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<TITLE></TITLE>
		<meta content="ie=7" http-equiv="x-ua-compatible">
		<LINK rel=stylesheet href='Styles/Style01.css'/>
		<style>
            .header{font-size:18px;margin:24px auto 6px auto;}
			TABLE { WIDTH: 960px;}
		</style>
		<script src="Scripts/jquery-1.7.min.js" type="text/javascript"></script>
		<script language="javascript">
		    $(function () {
		        $("tr:odd").css("background-color", "#f5fafe");
		        $("caption").attr('title', '[折叠/展开]');
		        $("caption").click(function (event) {
		            //event.preventDefault();
		            $(this).siblings().slideToggle();
		        });
		    });
		</script>
	</HEAD>
	<body>
        <div class="header">员工档案 查看</div>
		<table class="s1 view">
			<caption>基本信息<font color=#ff0000>(Tip:点击表格头可折叠/展开内容块~~~)</font></caption>
			<tr>
				<td>姓名</td>
				<td><%=employee.Name %></td>
				<td>工号</td>
				<td><%=employee.JobNo %></td>
				<td rowSpan="7" colSpan="2"><img id="ImageData" width="120" height="150" runat="server"></td>
			</tr>
			<tr>
				<td>部门</td>
				<td><%=empDeptName%></td>
				<td>职位</td>
				<td><%=empDepPositions.First().DeptPosName%></td>
			</tr>
			<tr>
				<td>出生年月</td>
				<td><%=employee.BornDate.ToString("yyyy-MM-dd") %></td>
				<td>性别</td>
				<td><%=employee.Sex %></td>
			</tr>
			<tr>
				<td>学历</td>
				<td><%=employee.EduLevel%></td>
				<td>专业</td>
				<td><%=employee.Major %></td>
			</tr>
			<tr>
				<td>学位</td>
				<td><%=employee.EduDegree %></td>
				<td>英语水平</td>
				<td><%=employee.EngLevel %></td>
			</tr>
			<tr>
				<td>职级</td>
				<td><%=employee.TechLevel %></td>
				<td>户籍类型</td>
				<td><%=employee.NativePlaceType %></td>
			</tr>
			<tr>
				<td>政治面貌</td>
				<td><%=employee.PoliticsStatus %></td>
				<td>职称资格</td>
				<td><%=employee.TechTitle %></td>
			</tr>
			<tr>
				<td>籍贯</td>
				<td><%=employee.NativePlace %></td>
				<td>参加工作时间</td>
				<td><%=employee.TrialDate%></td>
				<td>用工形式</td>
				<td><%=employee.EmplyForm %></td>
			</tr>
			<tr>
				<td>粤语水平</td>
				<td><%=employee.Cantonese %></td>
				<td>其他语言</td>
				<td><%=employee.OtherLanguage %></td>
				<td>生肖</td>
				<td><%=employee.Animal %></td>
			</tr>
			<tr>
				<td>民族</td>
				<td><%=employee.Nation %></td>
				<td>婚姻状况</td>
				<td><%=employee.Marriage %></td>
				<td>生育情况</td>
				<td><%=employee.BirthStatus %></td>
			</tr>
			<tr>
				<td>身高</td>
				<td><%=employee.Height %></td>
				<td>体重</td>
				<td><%=employee.Weight %></td>
				<td>视力</td>
				<td>左眼:<%=employee.SightLeft %>右眼:<%=employee.SightRight %></td>
			</tr>
			<tr>
				<td>血型</td>
				<td><%=employee.BloodType %></td>
				<td>兴趣爱好</td>
				<td colspan="3"><%=employee.Faves %></td>
			</tr>
		</table>
		<table class="s1 view">
			<caption>联系与状态信息</caption>
			<tr>
				<td>直线</td>
				<td><%=employee.Tel %></td>
				<td>分机</td>
				<td><%=employee.TelExt %></td>
				<td>手机号</td>
				<td><%=employee.Mobile %></td>
			</tr>
			<tr>
				<td>家庭电话</td>
				<td><%=employee.HomeTel %></td>
				<td>E_Mail</td>
				<td><%=employee.EMail %></td>
				<td>QQ</td>
				<td><%=employee.QQ %></td>
			</tr>
			<tr>
				<td>个人主页</td>
				<td><%=employee.HomePage %></td>
				<td>MSN</td>
				<td><%=employee.MSN %></td>
				<td></td>
				<td></td>
			</tr>
			<tr>
				<td>身份证号</td>
				<td><%=employee.IdNo %></td>
				<td>身份证地址</td>
				<td colspan="3"><%=employee.IdAddress %></td>
			</tr>
			<tr>
				<td>家庭住址</td>
				<td colspan="5"><%=employee.HomeAddress %></td>
			</tr>
			<tr>
				<td>紧急联系人</td>
				<td><%=employee.Contacter %></td>
				<td>联系人电话</td>
				<td><%=employee.ContacterTel %></td>
				<td>信息来源</td>
				<td><%=employee.InfoFrom %></td>
			</tr>
			<tr>
				<td>是否提供食宿</td>
				<td><%=employee.ShiSu %></td>
				<td></td>
				<td></td>
				<td></td>
				<td></td>
			</tr>
			<tr>
				<td>是否有刑事记录</td>
				<td><%=employee.Penal %></td>
				<td>是否被开除过</td>
				<td><%=employee.Fire %></td>
				<td>与原单位有无纠纷</td>
				<td><%=employee.Issue %></td>
			</tr>
			<tr>
				<td>实习日期</td>
				<td><%=employee.PacticeDate%></td>
				<td>试用日期</td>
				<td><%=employee.TrialDate%></td>
				<td>转正日期</td>
				<td><%=employee.DueDate%></td>
			</tr>
			<tr>
				<td>离职日期</td>
				<td><%=employee.LeaveDate%></td>
				<td>离职原因</td>
				<td><%=employee.LeaveCause %></td>
				<td></td>
				<td></td>
			</tr>
		</table>
		<asp:repeater id="rptEdu" Runat="server" EnableViewState="False">
			<HeaderTemplate>
				<table class="s1 list">
					<caption>教育经历</caption>
					<thead>
						<TR>
							<th width="3%"></th>
							<th>开始日期</th>
							<th>结束日期</th>
							<th>教育机构名称</th>
							<th>专业</th>
							<th>学历</th>
							<th>证书编号</th>
							<th>受教育性质</th>
							<th>校长</th>
							<th>学校地址</th>
						</TR>
					</thead><tbody>
			</HeaderTemplate>
			<ItemTemplate>
				<tr>
					<td><%# (Container.ItemIndex+1).ToString()%></td>
					<td><%# DataBinder.Eval(Container.DataItem, "StartDate", "{0:d}")%></td>
					<td><%# DataBinder.Eval(Container.DataItem, "EndDate", "{0:d}")%></td>
					<td><%# DataBinder.Eval(Container.DataItem, "OrgName")%></td>
					<td><%# DataBinder.Eval(Container.DataItem, "Major")%></td>
					<td><%# DataBinder.Eval(Container.DataItem, "EduLvl")%></td>
					<td><%# DataBinder.Eval(Container.DataItem, "CertificateNo")%></td>
					<td><%# DataBinder.Eval(Container.DataItem, "EducatedMode")%></td>
					<td><%# DataBinder.Eval(Container.DataItem, "OrgMaster")%></td>
					<td><%# DataBinder.Eval(Container.DataItem, "OrgAddress")%></td>
				</tr>
			</ItemTemplate>
			<FooterTemplate>
				</tbody></table>
			</FooterTemplate>
		</asp:repeater>
		<asp:repeater id="rptWork" Runat="server" EnableViewState="False">
			<HeaderTemplate>
				<table class="s1 list">
					<caption>
						工作经历</caption>
					<thead>
						<TR>
							<th width="3%"></th>
							<th>开始日期</th>
							<th>结束日期</th>
							<th>公司名称</th>
							<th>公司地址</th>
							<th>工作部门</th>
							<th>职务</th>
							<th>月薪</th>
							<th>工作职责</th>
							<th>业绩</th>
							<th>离职原因</th>
							<th>联系电话</th>
							<th>证明人</th>
						</TR>
					</thead><tbody>
			</HeaderTemplate>
			<ItemTemplate>
				<tr>
					<td><%# (Container.ItemIndex+1).ToString()%></td>
					<td><%# DataBinder.Eval(Container.DataItem, "StartDate", "{0:d}")%></td>
					<td><%# DataBinder.Eval(Container.DataItem, "EndDate", "{0:d}")%></td>
					<td><%# DataBinder.Eval(Container.DataItem, "Corporation")%></td>
					<td><%# DataBinder.Eval(Container.DataItem, "Address")%></td>
					<td><%# DataBinder.Eval(Container.DataItem, "Department")%></td>
					<td><%# DataBinder.Eval(Container.DataItem, "Position")%></td>
					<td><%# DataBinder.Eval(Container.DataItem, "Salary")%></td>
					<td><%# DataBinder.Eval(Container.DataItem, "Responsibility")%></td>
					<td><%# DataBinder.Eval(Container.DataItem, "Achievement")%></td>
					<td><%# DataBinder.Eval(Container.DataItem, "LeaveCause")%></td>
					<td><%# DataBinder.Eval(Container.DataItem, "CertifierPhone")%></td>
					<td><%# DataBinder.Eval(Container.DataItem, "Certifier")%></td>
				</tr>
			</ItemTemplate>
			<FooterTemplate>
				</tbody></table>
			</FooterTemplate>
		</asp:repeater>
		<asp:repeater id="rptFamily" Runat="server" EnableViewState="False">
			<HeaderTemplate>
				<table class="s1 list">
					<caption>家庭背景</caption>
					<thead>
						<TR>
							<th width="3%"></th>
							<th>称呼</th>
							<th>姓名</th>
							<th>工作单位</th>
							<th>联系电话</th>
							<th>联系地址</th>
						</TR>
					</thead><tbody>
			</HeaderTemplate>
			<ItemTemplate>
				<tr>
					<td><%# (Container.ItemIndex+1).ToString()%></td>
					<td><%# DataBinder.Eval(Container.DataItem, "Relation")%></td>
					<td><%# DataBinder.Eval(Container.DataItem, "Name")%></td>
					<td><%# DataBinder.Eval(Container.DataItem, "WorkUnit")%></td>
					<td><%# DataBinder.Eval(Container.DataItem, "ContactPhone")%></td>
					<td><%# DataBinder.Eval(Container.DataItem, "ContactAddress")%></td>
				</tr>
			</ItemTemplate>
			<FooterTemplate>
				</tbody></table>
			</FooterTemplate>
		</asp:repeater>
		<asp:repeater id="rptCriminal" Runat="server" EnableViewState="False">
			<HeaderTemplate>
				<table class="s1 list">
					<caption>奖惩记录</caption>
					<thead>
						<TR>
							<th width="3%"></th>
							<th>日期</th>
							<th>奖惩类型</th>
							<th>奖惩项目</th>
							<th>内容</th>
						</TR>
					</thead><tbody>
			</HeaderTemplate>
			<ItemTemplate>
				<tr>
					<td><%# (Container.ItemIndex+1).ToString()%></td>
					<td><%# DataBinder.Eval(Container.DataItem, "AwardDate", "{0:d}")%></td>
					<td><%# DataBinder.Eval(Container.DataItem, "AwardType")%></td>
					<td><%# DataBinder.Eval(Container.DataItem, "AwardItem")%></td>
					<td><%# DataBinder.Eval(Container.DataItem, "AwardContent")%></td>
				</tr>
			</ItemTemplate>
			<FooterTemplate>
				</tbody></table>
			</FooterTemplate>
		</asp:repeater>
		<asp:repeater id="rptTrain" Runat="server" EnableViewState="False">
			<HeaderTemplate>
				<table class="s1 list">
					<caption>培训记录</caption>
					<thead>
						<TR>
							<th width="3%"></th>
							<th>开始日期</th>
							<th>结束日期</th>
							<th>培训类型</th>
							<th>培训名称</th>
							<th>培训地点</th>
							<th>培训老师</th>
							<th>培训内容</th>
						</TR>
					</thead><tbody>
			</HeaderTemplate>
			<ItemTemplate>
				<tr>
					<td><%# (Container.ItemIndex+1).ToString()%></td>
					<td><%# DataBinder.Eval(Container.DataItem, "StartDate", "{0:d}")%></td>
					<td><%# DataBinder.Eval(Container.DataItem, "EndDate", "{0:d}")%></td>
					<td><%# DataBinder.Eval(Container.DataItem, "TrainType")%></td>
					<td><%# DataBinder.Eval(Container.DataItem, "TrainSubject")%></td>
					<td><%# DataBinder.Eval(Container.DataItem, "TrainAddress")%></td>
					<td><%# DataBinder.Eval(Container.DataItem, "Trainer")%></td>
					<td><%# DataBinder.Eval(Container.DataItem, "TrainContent")%></td>
				</tr>
			</ItemTemplate>
			<FooterTemplate>
				</tbody></table>
			</FooterTemplate>
		</asp:repeater>
		<asp:repeater id="rptContract" Runat="server" EnableViewState="False">
			<HeaderTemplate>
				<table class="s1 list">
					<caption>
						合同记录</caption>
					<thead>
						<TR>
							<th width="3%"></th>
							<th>开始日期</th>
							<th>结束日期</th>
							<th>签订日期</th>
							<th>签订地点</th>
							<th>保管人</th>
							<th>备注</th>
						</TR>
					</thead><tbody>
			</HeaderTemplate>
			<ItemTemplate>
				<tr>
					<td><%# (Container.ItemIndex+1).ToString()%></td>
					<td><%# DataBinder.Eval(Container.DataItem, "StartDate", "{0:d}")%></td>
					<td><%# DataBinder.Eval(Container.DataItem, "EndDate", "{0:d}")%></td>
					<td><%# DataBinder.Eval(Container.DataItem, "CreatDate", "{0:d}")%></td>
					<td><%# DataBinder.Eval(Container.DataItem, "CreatAddress")%></td>
					<td><%# DataBinder.Eval(Container.DataItem, "Holder")%></td>
					<td><%# DataBinder.Eval(Container.DataItem, "Remark")%></td>
				</tr>
			</ItemTemplate>
			<FooterTemplate>
				</tbody></table>
			</FooterTemplate>
		</asp:repeater>
		<asp:repeater id="rptExam" Runat="server" EnableViewState="False">
			<HeaderTemplate>
				<table class="s1 list">
					<caption>
						考核记录</caption>
					<thead>
						<TR>
							<th width="3%"></th>
							<th>开始日期</th>
							<th>结束日期</th>
							<th>考核目标</th>
							<th>考核结果</th>
							<th>考核面谈及评估</th>
							<th>本人意见</th>
							<th>备注</th>
						</TR>
					</thead><tbody>
			</HeaderTemplate>
			<ItemTemplate>
				<tr>
					<td><%# (Container.ItemIndex+1).ToString()%></td>
					<td><%# DataBinder.Eval(Container.DataItem, "StartDate", "{0:d}")%></td>
					<td><%# DataBinder.Eval(Container.DataItem,"EndDate","{0:d}") %></td>
					<td><%# DataBinder.Eval(Container.DataItem, "ExamPurpose")%></td>
					<td><%# DataBinder.Eval(Container.DataItem, "ExamResult")%></td>
					<td><%# DataBinder.Eval(Container.DataItem, "ExamEvaluation")%></td>
					<td><%# DataBinder.Eval(Container.DataItem, "PersonalOpinion")%></td>
					<td><%# DataBinder.Eval(Container.DataItem, "Remark")%></td>
				</tr>
			</ItemTemplate>
			<FooterTemplate>
				</tbody></table>
			</FooterTemplate>
		</asp:repeater>
		<asp:repeater id="rptPromotion" Runat="server" EnableViewState="False">
			<HeaderTemplate>
				<table class="s1 list">
					<caption>
						调动与晋升</caption>
					<thead>
						<TR>
							<th width="3%"></th>
							<th>开始日期</th>
							<th>结束日期</th>
							<th>部门</th>
							<th>职位</th>
						</TR>
					</thead><tbody>
			</HeaderTemplate>
			<ItemTemplate>
				<tr>
					<td><%# (Container.ItemIndex+1).ToString()%></td>
					<td><%# DataBinder.Eval(Container.DataItem, "StartDate", "{0:d}")%></td>
					<td><%# DataBinder.Eval(Container.DataItem, "EndDate", "{0:d}")%></td>
					<td><%#getDeptName(DataBinder.Eval(Container.DataItem, "DeptId"))%></td>
					<td><%#getPositionName(DataBinder.Eval(Container.DataItem, "PosId"))%></td>
				</tr>
			</ItemTemplate>
			<FooterTemplate>
				</tbody></table>
			</FooterTemplate>
		</asp:repeater>
	</body>
</HTML>